package commands.gui;

/**
 *  A command returning set of preferences.
 *
 * @author Marcin Kamionowski
 */
public class GUICurrentPreferences extends GUICommand {

    private final int maxActiveDownloads;
    private final int connectionsPerDownload;

    /**
     *
     * @param maxActiveConnections Maximum number of active downloads
     */
    public GUICurrentPreferences(int maxActiveDownloads, int connectionsPerDownload) {
        super(GUICommandType.PREFERENCES);
        this.maxActiveDownloads = maxActiveDownloads;
        this.connectionsPerDownload = connectionsPerDownload;
    }

    /**
     *
     * @return Maximum number of active downloads
     */
    public int getMaxActiveDownloads() {
        return maxActiveDownloads;
    }

    public int getConnectionsPerDownload() {
        return connectionsPerDownload;
    }
}
